Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified ColorStyleNode and TextStyleNode Hasahble to avoid duplicated values #61

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

puchog
Copy link
Contributor

@puchog puchog commented Apr 23, 2020

On larger projects when the same color or text style its used more than once in the node / file we was getting duplicated colors and text styles on generated ColorStyle.swift and TextStyle.swift.
I modified Hashable implementation to void id and description fields to get better definition of duplicated nodes

Copy link
Owner

@almazrafi almazrafi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@almazrafi almazrafi merged commit 9b1e33c into almazrafi:master Apr 23, 2020
@puchog puchog deleted the bugfix/duplicated-styles branch July 7, 2020 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants